import '../../../../providers/api/http.provider.dart';
import '../models/login.model.dart';

class LoginApi {
  static Future<LoginRes> login(LoginForm form) async {
    var response =
        await Http.instance.dio.post("/admin/user/login", data: form.toJson());
    var data = LoginRes.fromJson(response.data["data"]);
    return data;
  }
}
